var mongoose =require('mongoose');
var Schema = mongoose.Schema;

var Card = new Schema({
    userId: {type: Schema.Types.ObjectId, ref: 'User'},
    name: {type: String},
    gender: {type: String},
    company: {type: String},
    position: {type: String},
    address: {type: String},
    mobile: {type: String},
    email: {type: String},
    qq: {type: String},
    wechat: {type: String},
    business: {type: String},
    product: {type: String}
})

mongoose.model('Card', Card);